package com.example.player.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;

import android.content.Context;
import android.os.Bundle;

import com.easefun.polyvsdk.RestVO;
import com.example.player.R;
import com.example.player.adapter.OnlineListViewAdapter;

import java.util.ArrayList;
import java.util.List;

public class OnlineVideoActivity extends AppCompatActivity {

    private Context mContext;

    private OnlineVideoActivity(Context context){
        this.mContext=context;

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_online_video);
        RecyclerView recyclerView=(RecyclerView) findViewById(R.id.lv_online);
        List<RestVO> data=new ArrayList<>();
        OnlineListViewAdapter adapter=new OnlineListViewAdapter(recyclerView,mContext,data);
        recyclerView.setAdapter(adapter);
    }
}